/*
 * @Author: your name
 * @Date: 2021-04-09 16:20:11
 * @LastEditTime: 2021-06-15 10:29:26
 * @LastEditors: 宋一楠
 * @Description: In User Settings Edit
 * @FilePath: /pc-uc-admin/src/api/dataBoard.js
 */
import request from '@/utils/request'

/**
 * 数据看板
 */

// 获取注册人数
export function getCountByDay(params) {
    return request({
        url: '/ucenter-admin/ucenter/user/getCountByDay',
        method: 'GET',
        params
    })
}

// 获取近x天用户注册人数
export function getCountByNumDay(params) {
    return request({
        url: '/ucenter-admin/ucenter/user/getCountByNumDay',
        method: 'GET',
        params
    })
}

// 获取订单列表
export function getOrderList(params) {
    return request({
        url: '/mall-admin/mall/mallOrder/order/activity/getlist',
        method: 'GET',
        params
    })
}
// 订单商户活动渠道列表导出
export function getExportlist(params) {
    return request({
        url: '/mall-admin/mall/mallOrder/order/activity/getExportlist',
        method: 'GET',
        params
    })
}

// 获取用户小程序用户注册数量
export function getUserWechatByNumDay(params) {
    return request({
        url: '/ucenter-admin/ucenter/user/getUserWechatByNumDay',
        method: 'GET',
        params
    })
}
// 获取微信公众号用户注册数量
export function getUserWechatAppByNumDay(params) {
    return request({
        url: '/ucenter-admin/ucenter/user/getUserWechatAppByNumDay',
        method: 'GET',
        params
    })
}
// 获取APP注册用户数量
export function getUserAppByNumDay(params) {
    return request({
        url: '/ucenter-admin/ucenter/user/getUserAppByNumDay',
        method: 'GET',
        params
    })
}
// 获取三方注册用户数量
export function getUserThirdByNumDay(params) {
    return request({
        url: '/ucenter-admin/ucenter/user/getUserThirdByNumDay',
        method: 'GET',
        params
    })
}
// 获取孩子信息注册数量
export function getUserChildrenByNumDay(params) {
    return request({
        url: '/ucenter-admin/ucenter/user/getUserChildrenByNumDay',
        method: 'GET',
        params
    })
}
// 获取注册人数折线图数据
export function getUserLineByNum(params) {
    return request({
        url: '/ucenter-admin/ucenter/user/getUserLineByNum',
        method: 'GET',
        params
    })
}
// 获取metabaseurl
export function getMetabaseUrl(params) {
    return request({
        url: '/ucenter-admin/metabase/getUrl',
        method: 'GET',
        params
    })
}